﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Admin.Master"
    CodeBehind="AdminUpdate.aspx.vb" Inherits="GoodAnotApp.UpdateDeleteShopOutletAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 523px;
        }
        .style3
        {
            width: 50%;
            height: 181px;
        }
        .style10
        {}
        .style11
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="BusinessDetails">
        <asp:Panel ID="UpdateBusinessDetails" runat="server" Width="1063px">
            <table style="width: 100%; height: 181px;">
                <tr>
                    <td align="center" class="style2" rowspan="3" style="border-top:0px">
                        <asp:Panel ID="BusinessDetailPanel" runat="server" Width="500px">
                            <table style="width: 50%; height: 181px;" width="500px" class="bordered-table">
                                <tr>
                                    <td class="style23">
                                        Business Name :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxBusinessName" runat="server" Width="374px" MaxLength="99"></asp:TextBox>
                                        &nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Category:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True">
                                            <asp:ListItem>Select  Category</asp:ListItem>
                                            <asp:ListItem Value="Retail">Retail</asp:ListItem>
                                            <asp:ListItem>Fashion &amp; Clothing</asp:ListItem>
                                            <asp:ListItem>Beauty &amp; Sports</asp:ListItem>
                                            <asp:ListItem>Home &amp; Electronics</asp:ListItem>
                                            <asp:ListItem>Entertainment</asp:ListItem>
                                            <asp:ListItem>Night Clubs</asp:ListItem>
                                            <asp:ListItem>Gaming </asp:ListItem>
                                            <asp:ListItem>Cinema</asp:ListItem>
                                            <asp:ListItem>Arts</asp:ListItem>
                                            <asp:ListItem>Education</asp:ListItem>
                                            <asp:ListItem>Tuition Centre</asp:ListItem>
                                            <asp:ListItem>Enrichment Classes</asp:ListItem>
                                            <asp:ListItem>Health &amp; Beauty</asp:ListItem>
                                            <asp:ListItem>Doctors</asp:ListItem>
                                            <asp:ListItem>Dentists</asp:ListItem>
                                            <asp:ListItem>Hospitals</asp:ListItem>
                                            <asp:ListItem>Clinics</asp:ListItem>
                                            <asp:ListItem>Medical Spa / Spa</asp:ListItem>
                                            <asp:ListItem>Massage</asp:ListItem>
                                            <asp:ListItem>Makeup Artists</asp:ListItem>
                                            <asp:ListItem>Pets</asp:ListItem>
                                            <asp:ListItem>Pet Accessories</asp:ListItem>
                                            <asp:ListItem>Veterinarians</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Website :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxShopURL" runat="server" Width="376px" MaxLength="149"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Details :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxShopDetails" runat="server" Height="102px" TextMode="MultiLine"
                                            Width="394px" MaxLength="999"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr align="right">
                                    <td align="right" class="style18" colspan="2">
                                        <asp:Panel ID="PanelUpdateDelete" runat="server" Height="30px" Width="171px" 
                                            CssClass="style10">
                                            <asp:Button ID="BtnBusinessUpdate" runat="server" Height="34px" Text="Update" Width="62px" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="btnBResolved" runat="server" Text="Resolved" Height="34px" 
                                                Width="62px" />
                                            </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                      
                        <asp:Panel ID="OutletDetailsPanel" runat="server" Width="500px">
                            <table class="bordered-table" width="500px">
                                <tr>
                                    <td class="style21">
                                        Outlet Name :
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxShopOutletName" runat="server" Height="27px" 
                                            Width="375px" MaxLength="99"></asp:TextBox>
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Outlet Address:
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxOutletAddress" runat="server" Height="27px" 
                                            Width="378px" MaxLength="199"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Phone No:
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxShopOutletTel" runat="server" Height="24px" 
                                            Width="206px" MaxLength="20"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Opening Hours:
                                    </td>
                                    <td class="style16">
                                        <asp:TextBox ID="tbxOpeningHours" runat="server" Width="309px" MaxLength="30"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Remarks:
                                    </td>
                                    <td class="style16">
                                        <asp:TextBox ID="tbxRemarks" runat="server" Height="141px" TextMode="MultiLine" 
                                            Width="312px" MaxLength="299"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21" colspan="2" align="right">
                                        <asp:Panel ID="PanelUpdateDelete0" runat="server" Height="30px" Width="191px" 
                                            CssClass="style11">
                                            <asp:Button ID="BtnOutletUpdate" runat="server" Text="Update" Height="34px" 
                                                Width="62px" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="btnOResolved" runat="server" Text="Resolved" Height="34px" 
                                                Width="62px" />
                                            </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                    <td align="center" class="style3" style="border-top:0px" > 
                        <asp:HiddenField ID="hfReportID" runat="server" />
                        <asp:HiddenField ID="hfBusinessID" runat="server" />
                        <asp:HiddenField ID="hfOutletsID" runat="server" />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                            
                            SelectCommand="SELECT type, comment FROM dashboard_report WHERE (ID = @ID) AND (report_ID=@report_ID)">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hfBusinessID"  Name="ID" 
                                    PropertyName="Value" />
                                <asp:ControlParameter ControlID="hfReportID" Name="report_ID" PropertyName="Value" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
                          <%--  <AlternatingItemTemplate>
                                <span style="">type:
                                <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                <br />
                                comment:
                                <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                                <br />
                                <br />
                                </span>
                            </AlternatingItemTemplate>--%>
                            <EditItemTemplate>
                                <span style="">type:
                                <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
                                <br />
                                comment:
                                <asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' />
                                <br />
                                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                    Text="Update" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Cancel" />
                                <br />
                                <br />
                                </span>
                            </EditItemTemplate>
                            <EmptyDataTemplate>
                                <span>No data was returned.</span>
                            </EmptyDataTemplate>
                            <InsertItemTemplate>
                                    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                        width="250px" class="bordered-table">
                                        <tr>
                                            <td >
                                <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
                                </td>
                                </tr>
                                <tr style="border-top:0px">
                                <td style="border-top:0px">
 <asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' />
                                </td>
                                </tr>
                                </table>
                               <%-- comment:
                               
                                <br />
                                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                    Text="Insert" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Clear" />--%>
                                <br />
                                <br />
                                </span>
                            </InsertItemTemplate>
                            <ItemTemplate>
                              <table class="bordered-table" style="margin-bottom: 0px; background-color: #FFFFCC;" width="250px" id="ReportTable" border="1px">
                              <tr>
                              <td>
                              <span style="">Type:
                                <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                <br />
                              </td>
                              </tr>
                              <tr>
                              <td style="border-top:0px">
                                 Comment:
                                <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                              </td>
                              </tr>
                              </table>
                              
                                <br />
                                <br />
                                </span>
                            </ItemTemplate>
                            <LayoutTemplate>
                                <div style="" ID="itemPlaceholderContainer" runat="server">
                                    <span runat="server" id="itemPlaceholder" />
                                </div>
                                <div style="">
                                </div>
                            </LayoutTemplate>
                            <SelectedItemTemplate>
                                <span style="">type:
                                <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                <br />
                                comment:
                                <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                                <br />
                                <br />
                                </span>
                            </SelectedItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style3" style="border-top:0px">

                     <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"

                            SelectCommand="SELECT type, comment FROM dashboard_report WHERE (ID = @ID) AND (report_ID = @report_ID)">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hfOutletsID"  Name="ID" 
                                    PropertyName="Value" />
                                <asp:ControlParameter ControlID="hfReportID" Name="report_ID" PropertyName="Value" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                      <%--<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                            SelectCommand="SELECT type, comment, ID FROM dashboard_report WHERE (ID = @ID)">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hfBusinessID"  Name="ID" 
                                    PropertyName="Value" />
                            </SelectParameters>
                        </asp:SqlDataSource>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="border-top:0px">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
</asp:Content>
